package com.cmower.baeldung.arrays1;

import java.util.Arrays;
import java.util.stream.Stream;

public class ToStreamDemo {
    public static void main(String[] args) {
String[] anArray = new String[] {"沉默王二", "一枚有趣的程序员", "好好珍重他"};
Stream<String> aStream = Arrays.stream(anArray);

        Stream<String> anotherStream = Arrays.stream(anArray, 1, 3);

    }
}
